package com.wzcl.app.model.vo;

import com.wzcl.app.dao.model.UserInfo;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

import java.util.Date;


@EqualsAndHashCode(callSuper = false)
@Data
public class UserInfoVo extends BaseVo {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "家庭住址")
    private String path;

    @ApiModelProperty(value = "出生日期")
    private Date birthday;

    @ApiModelProperty(value = "所属学校")
    private String school;

    @ApiModelProperty(value = "当前积分")
    private Double score;

    @ApiModelProperty(value = "用户区县")
    private String area;

    @ApiModelProperty(value = "用户城市")
    private String city;

    @ApiModelProperty(value = "用户省份")
    private String province;

    private UserInfoVo() {
    }

    public static UserInfoVo create(UserInfo userInfo){
        UserInfoVo userInfoVo = new UserInfoVo();
        BeanUtils.copyProperties(userInfo,userInfoVo);
        userInfoVo.translationValueStr();
        return userInfoVo;
    }

    @Override
    public void translationValueStr() {

    }

    @Override
    public void processResources() {

    }
}
